Class PKIServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dogtagpki.server.rest.v2.PKIServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
AccountServlet, AuditServlet, FeatureServlet, GroupServlet, JobServlet, SecurityDomainServlet, SelfTestServlet, UserServlet

public abstract class PKIServlet extends javax.servlet.http.HttpServlet
Implement the basic class to handle REST APIs API are routed to method in subclasses implementing specific actions annotated with WebAction
Author:
Marco Fargetta <mfargett@redhat.com>
See Also:
  • Field Details

  • Constructor Details

    • PKIServlet

      public PKIServlet()
  • Method Details

    • init

      public void init() throws javax.servlet.ServletException
      Overrides:
      init in class javax.servlet.GenericServlet
      Throws:
      javax.servlet.ServletException
    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doPost

      public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doPut

      public void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPut in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doDelete

      public void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doDelete in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doHead

      protected void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doHead in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • service

      protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
      Overrides:
      service in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • getActionMethod

      public Method getActionMethod(PKIServlet.HttpMethod met, String path)
    • getAllowedMethods

      public String getAllowedMethods(String path)
    • getSubsystemName

      protected String getSubsystemName()
    • getEngine

      protected CMSEngine getEngine()
    • getSubsystemConfDir

      protected String getSubsystemConfDir()
    • getSharedSubsystemConfDir

      protected String getSharedSubsystemConfDir()
    • getResourceBundle

      protected ResourceBundle getResourceBundle(String name, Locale locale) throws MalformedURLException
      Throws:
      MalformedURLException